package com.algorithm.link;/*
 *@Author:DOWN
 *@Date:2021/12/28 17:02
 *@Comment: 节点
 */

public class Node<E> {
    public E item;
    public Node next;

    public Node(E newItem, Node newNext) {
        this.item = newItem;
        this.next = newNext;
    }

    public Node(E newItem) {
        this(newItem, null);
    }

    public Node() {
        this(null, null);
    }

    @Override
    public String toString() {
        return item.toString();
    }
}
